package org.jprobe.codegen;


/**
 * code generation implementation of an object
 * @author Hussain Al-Mutawa
 * @version 2.0
 * @since 2.0
 */
public class Implementation implements ImplementationInterface{
	/** package and code **/
	private transient final String pkg,code;
	/**
	 * instantiate new implementation data object
	 * @param clazz the class to be instantiated
	 * @throws IllegalArgumentException if the class can not be implemented
	 */
	public Implementation(final String pkg,final String code){
		super();
		this.code=code;
		this.pkg=pkg;
	}
	@Override
	public String getCode() {
		return code;
	}
	@Override
	public String getPackageName() {
		return pkg;
	}
	@Override
	public String toString() {
		return code;
	}
}